package LifeForms;

import Game.Dude;
import Game.Entity;
import Game.Sprite;

public class Chaser extends Entity{

	public Chaser(Sprite sprite, int ID, int x, int y) {
		super(sprite, ID, x, y);
		exists=true;
	}
	public void Chase(Dude character){
		if(character.getX()+3>this.x){
			this.setHorMove(1);
		}else if(character.getX()-3<this.x){
			this.setHorMove(-1);
		}else{
			this.setHorMove(0);
		}if(character.getY()+8>this.y){
			this.setVerMove(1);
		}else if(character.getY()+8<this.y){
			this.setVerMove(-1);
		}else{
			
		}
	}
}
